package dk.eal.kbr.mule.component.exchange;

import org.mule.api.MuleEventContext;


import dk.eal.kbr.mule.calenderhandler.*;

public class CalenderItemToExchangeCalenderItem implements org.mule.api.lifecycle.Callable{

	@Override
	public Object onCall(MuleEventContext eventContext) throws Exception {

		CalenderItem calenderItem = (CalenderItem)eventContext.transformMessage(CalenderItem.class);
		ExchangeCalenderItem exchangeCalenderItem = new ExchangeCalenderItem(calenderItem);	
		return exchangeCalenderItem;
	}

}
